﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xilium.CefGlue;

namespace IanWebkitBrowser
{
    public class App : CefApp
    {
        public CefMainArgs Args { get; set; }
        public CefClient Client { get; set; }
        public CefBrowser Browser { get; set; }
        public CefRenderProcessHandler RenderProcessHandler { get; set; }
        

        public App()
        {
            RenderProcessHandler = new RenderProcessHandler();
        }

        protected override CefRenderProcessHandler GetRenderProcessHandler()
        {
            return RenderProcessHandler;
        }

        protected override void OnBeforeCommandLineProcessing(string processType, CefCommandLine commandLine)
        {
            base.OnBeforeCommandLineProcessing(processType, commandLine);
            //加载系统flash
            commandLine.AppendSwitch("--enable-system-flash","");
        }
    }
}
